<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\MenuSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title                   = 'Menus';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="menu-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Create Menu', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <?= GridView::widget(
        [
            'dataProvider' => $dataProvider,
//        'filterModel' => $searchModel,
            'columns'      => [
                ['class' => 'yii\grid\SerialColumn'],
//            'id',
//            'tree',
//            'lft',
//            'rgt',
//            'depth',
                'name',
//                'type',
                'url:url',
//                'is_absolute_url:url',
                'icon',
                'sort',
//                'target',
//                'is_display',
                //'created_at',
                //'updated_at',

                ['class' => 'yii\grid\ActionColumn'],
            ],
        ]
    ); ?>


</div>
